<template>
  <div class="box">
    <el-row>
      <el-col :span="24">
        <div class="header">
          <el-form ref="form" :model="form" label-width="100px" class="flex">
            <el-form-item label=" " style="margin-left: 10px">
              <el-input
                v-model="form.name"
                placeholder="请输入"
                style="width: 286px"
              ></el-input>
            </el-form-item>
            <el-form-item label="网点名称">
              <el-select
                v-model="form.region"
                placeholder="请选择网点名称"
                style="width: 286px"
              >
                <el-option label="区域一" value="shanghai"></el-option>
                <el-option label="区域二" value="beijing"></el-option>
              </el-select>
            </el-form-item>
            <div style="margin-left: 10px; width: 386px">
              <el-form-item label="查询时间">
                <el-date-picker
                  v-model="value1"
                  style="width: 100%"
                  type="datetimerange"
                  range-separator="至"
                  start-placeholder="开始日期"
                  end-placeholder="结束日期"
                >
                </el-date-picker>
              </el-form-item>
            </div>

            <el-form-item label="统计维度">
              <el-select
                v-model="form.region"
                placeholder="请选择统计维度"
                style="width: 286px"
              >
                <el-option label="区域一" value="shanghai"></el-option>
                <el-option label="区域二" value="beijing"></el-option>
              </el-select>
            </el-form-item>
            <el-form-item>
              <el-button type="primary" @click="onSubmit">查询</el-button>
              <el-button>重置</el-button>
            </el-form-item>
          </el-form>
        </div>
      </el-col>
    </el-row>

    <el-row type="flex" justify="space-between">
      <el-col :span="6">
        <div>当前页共10项</div>
      </el-col>
    </el-row>
    <el-row type="flex" justify="space-between">
      <el-col :span="24">
        <el-table :data="tableData" border style="width: 100%">
          <el-table-column fixed prop="date" label="业务时间" width="150">
          </el-table-column>
          <el-table-column fixed prop="name" label="运单号" width="120">
          </el-table-column>
          <el-table-column prop="province" label="所属网点" width="120">
          </el-table-column>
          <el-table-column prop="zip" label="寄件地址" width="120">
          </el-table-column>
          <el-table-column prop="zip" label="报价ID" width="120">
          </el-table-column>
          <el-table-column prop="zip" label="未收面单费" width="120">
          </el-table-column>
          <el-table-column prop="zip" label="签收时间" width="120">
          </el-table-column>
          <el-table-column prop="zip" label="有效状态" width="120">
          </el-table-column>
          <el-table-column prop="zip" label="锁定状态" width="120">
          </el-table-column>
        </el-table>
      </el-col>
    </el-row>
    <div class="block" style="display: flex; justify-content: end">
      <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="currentPage4"
        :page-sizes="[100, 200, 300, 400]"
        :page-size="100"
        layout="total, sizes, prev, pager, next, jumper"
        :total="400"
      >
      </el-pagination>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      form: {
        name: "",
        region: "",
        date1: "",
        date2: "",
        delivery: false,
        type: [],
        resource: "",
        currentPage4: 4,
        desc: "",
      },
      ul: {
        title: "投诉赔偿款",
        ticket: "29",
        num: "12",
      },
      ul2: {
        title: "投诉赔偿款",
        ticket: "29",
        num: "12",
      },

      tableData: [
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        },
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        },
        {
          date: "2016-05-08",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        },
        {
          date: "2016-05-06",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        },
        {
          date: "2016-05-07",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        },
      ],
      activeName: "first",
    };
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
  },
};
</script>
<style lang="scss" scoped>
.box {
  padding: 0px 20px;
}

.flex {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}
.liLittle {
  border: 1px solid #9999;
  height: 150px;
  display: flex;
  flex-flow: column;
  justify-content: space-around;
}
.liLittle > span {
  font-size: 24px;
}
.f-row {
  display: flex;
  flex-flow: row;
  justify-content: space-around;
}
.littbox {
  display: flex;
  flex-flow: column;
  justify-content: space-around;
  height: 100px;
}

.flex-bettom {
  display: flex;
  justify-content: space-between;
}

.header {
  padding: 20px 0;
  border-bottom: 1px solid #ccc;
}

.el-row {
  margin-bottom: 20px;

  &:last-child {
    margin-bottom: 0;
  }
}

.el-col {
  border-radius: 4px;
}

.bg-purple-dark {
  background: #99a9bf;
}

.bg-purple {
  background: #d3dce6;
}

.bg-purple-light {
  background: #e5e9f2;
}

.grid-content {
  border-radius: 4px;
  min-height: 36px;
}

.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
</style>
